﻿using Core;
using Registry;
using Render;
using UnityEngine;

namespace Batch
{
    public class ComMeshFightersAll : ComMeshBaseAll<ComMeshFighter>
    {
        protected override EcsWorld World => GameManager.Instance.World;

        protected override RenderElementCollections RenderMetaData
        {
            get
            {
                // 初始化动画配置数据
                var json = Resources.Load<TextAsset>("GenAtlasInfos/Genfighter");
                var collections = JsonUtility.FromJson<RenderElementCollections>(json.text);
                return collections;
            }
        }
        public override EArchetypeRegistryID Aid => EArchetypeRegistryID.Ball;
    }
}